using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Reporte_monitoreo_MonUsuario_InfoMonitoreo : PageController
{
    String codigoUsuario;
    String senal;
    String bateria;
    public static String nomimg;
    public static String batery;
    public BeanInfoMonitoreo bean = new BeanInfoMonitoreo();

    protected override void initialize()
    {
        codigoUsuario = Request.QueryString["codigousuario"].ToString();

        bean = DBMonitoreo.findInfoMonitoreoWebBean(codigoUsuario);
        senal = bean.senal.ToString();
        bateria = bean.bateria.ToString();


        switch (senal)
        {
            case "1": nomimg = "sinal_1.gif"; break;
            case "2": nomimg = "sinal_2.gif"; break;
            case "3": nomimg = "sinal_3.gif"; break;
            case "4": nomimg = "sinal_4.gif"; break;
            default: nomimg = "sinal_0.gif"; break;
        }

        switch (bateria)
        {
            case "0": batery = "ico_bat_0.JPG"; break;
            case "1": batery = "ico_bat_1.JPG"; break;
            case "2": batery = "ico_bat_2.JPG"; break;
            case "3": batery = "ico_bat_3.JPG"; break;
            case "4": batery = "ico_bat_4.gif"; break;
            default: batery = "ico_bat_0.gif"; break;
        }

    }
}
